#ifndef __HAL_H
#define __HAL_H


#include "beep.h"
#include "led.h"
#include "key.h"
#include "sys.h"
#include "delay.h"
#include "usart.h"
#include "exti.h"

#define LED0_INVERSE_EVT 0x0001
#define LED1_INVERSE_EVT 0x0002
#define LED0_LED1_INVERSE_EVT 0x0004
#define BEEP_INVERSE_EVT 0x0008

extern uint8_t HAl_TaskProcessID;
void HAL_Init(uint8_t taskID);
uint8_t HAL_ProcessEvents(uint8_t taskID, uint16_t event);

#endif



